home *** CD-ROM | disk | FTP | other *** search
- Path: service-2.agate.net!usenet
- From: ettienne@agate.net (Steve Nutt)
- Newsgroups: comp.lang.c++
- Subject: Re: using pow ( power command (n^m))
- Date: Mon, 15 Apr 1996 03:43:28 GMT
- Organization: DET
- Message-ID: <4ks97v$dp7@service-2.agate.net>
- References: <00001a81+0000b20f@msn.com>
- Reply-To: ettienne@agate.net
- NNTP-Posting-Host: ettienne.sdi.agate.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- MTROY@msn.com (MATTHEW MALMIN) wrote:
-
- >how do you use the pow command?
- >i want to do this
- >total = total ^ num;
- >how do i do this command in c++
-
- #include <math.h>
-
- total = pow (total, num);
-
- Steve
-
-